package com.lxyk.yygh.user.client;

import com.lxyk.yygh.model.user.Patient;
import com.lxyk.yygh.user.client.impl.UserFeignClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Repository
@FeignClient(name="service-user",fallback = UserFeignClientImpl.class)
public interface UserFeignClient {

    //根据patientId查找病人
    @GetMapping(value = "/api/user/patient/inner/get/{id}")
    public Patient getPatientById(@PathVariable("id") Long id);
}
